local hx__zhengtao = fk.CreateSkill {
  name = "hx__zhengtao",
  tags = { Skill.Compulsory,Skill.AttachedKingdom },
  attached_kingdom = { "qun" },
}


hx__zhengtao:addEffect(fk.DrawNCards, {
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(hx__zhengtao.name)
  end,
  on_use = function(self, event, target, player, data)
    data.n = data.n + 1
  end,
})

hx__zhengtao:addEffect("targetmod", {
  residue_func = function(self, player, skill, scope)
    if skill.trueName == "slash_skill" and scope == Player.HistoryPhase then
      local n = 0
      if player:hasSkill(hx__zhengtao.name) then
        n = n + 1
      end
      return n
    end
  end,
})

return hx__zhengtao